<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>Layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" th:href="@{/css/layui.css}"  media="all">
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
    <legend>问题列表</legend>
</fieldset>

<fieldset class="layui-elem-field">
    <legend>问题列表</legend>
    <div class="layui-field-box">
        <ul class="list-unstyled">
            <!--        循环队列-->
            <li class="media pb-3 pt-3 mb-3 border-bottom position-relative" th:each="map:${conversations}">
                <fieldset class="layui-elem-field">
<!--                几条未读消息-->
                    <span class="layui-badge" th:text="${map.unreadCount}">9</span>
                <div class="media-body">
                    <h4 class="mt-0 mb-3">
<!--                   用户名称-->
                        <a th:href="@{|/vip/vipdeail/${map.conversation.conversationId}|}" >
                        <span class="layui-btn layui-btn-normal" th:width="100px" th:utext="${map.target.username}">落基山脉下的闲人<span class="layui-badge">9</span></span>
                        </a>
<!--                        加急-->
                        <br>
                        <br>
                        <ul>
                            <li>
                                <form th:action="@{/like}" method="post">
                                    <input type="hidden" name="conversationId" th:value="${map.conversation.conversationId}">
                                    <button type="submit" class="layui-btn" th:text="${likeStatus == 1 ? '已加急' : '加急'}">加急</button>
<!--                                    <div class="invalid-feedback" th:text="${likeMsg}">-->
<!--                                        密码不正确-->
<!--                                    </div>-->
                                </form>
                            </li>
                        </ul>
<!--                   具体时间-->
                        <span style="padding-left: 1200px" th:text="${#dates.format(map.conversation.createTime,'yyyy-MM-dd HH:mm:ss')}">2019-04-28 14:13:25</span>
                    </h4>
                    <br>
                    <div>
<!--                        问题摘要-->
                        <h4>
                        <a href="" th:width="100px" th:utext="${map.conversation.content}">米粉车, 你来吧!</a>
                        </h4>
                    </div>
                </div>
                </fieldset>
            </li>
        </ul>
    </div>
</fieldset>
<form class="layui-form" action="">
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">普通文本域</label>
        <div class="layui-input-block">
            <textarea placeholder="请输入内容" class="layui-textarea"></textarea>
        </div>
    </div>
    <!--<div class="layui-form-item layui-form-text">
      <label class="layui-form-label">编辑器</label>
      <div class="layui-input-block">
        <textarea class="layui-textarea layui-hide" name="content" lay-verify="content" id="LAY_demo_editor"></textarea>
      </div>
    </div>-->
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
<script th:src="@{/layui.js}" charset="utf-8"></script>
<!--<script th:src="@{/js/discuss.js}"></script>-->
</body>
</html>